package com.ruoyi.manage.organization.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.manage.organization.domain.BizOrganization;
import com.ruoyi.manage.organization.domain.BizOrganizationMember;
import com.ruoyi.manage.organization.domain.vo.BizOrganizationVo;

import java.util.List;

/**
 * 金融机构信息Service接口
 *
 * @author ruoyi
 * @date 2025-08-14
 */
public interface IBizOrganizationService extends IService<BizOrganization> {

    BizOrganization queryGetById(String id);

    boolean addBizOrganization(BizOrganization bizOrganization);

    boolean addBizOrganizationByApp(BizOrganization bizOrganization);

    boolean updateBizOrganizationByApp(BizOrganization bizOrganization);

    boolean updateBizOrganization(BizOrganization bizOrganization);

    boolean deleteBizOrganizationByIds(String[] ids);

    public void check(BizOrganizationVo bizOrganization);

    List<BizOrganizationMember> selectOrganizationMember(QueryWrapper<BizOrganizationMember> wrapper);

    List<BizOrganizationMember> selectOrganizationMember2(QueryWrapper<BizOrganizationMember> wrapper);

    List<Tree<Long>> getNodeTree();

    public List<BizOrganizationVo> lists(QueryWrapper wrapper);

    public List<BizOrganizationVo> selectOrganizationName();

    public String selectOrganizationIdByUser(Long userId);

}
